package JUC;

import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class StreamDemo {
    public static void main(String[] args) {

        List<Integer> integers = Arrays.asList(1, 1, 3, 5, 4, 2);

        Random random = new Random(50);
        List<Integer> collect = random.ints(25,0,10).boxed().filter(e -> e > 5).peek(System.out::println).collect(Collectors.toList());
    }
}
